package com.geline.web.annotation;

import com.geline.web.enums.ActionEnum;

import java.lang.annotation.*;

@Repeatable(SqlActions.class)
@Target({ ElementType.METHOD })
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface SqlAction {

    ActionEnum type() default ActionEnum.after;

    //动态写入sql
    String writeSql();

    //提示
    String errorMsg() default "@SqlAction error !";
}
